﻿#ifndef LOCALDIALOG_H
#define LOCALDIALOG_H

#include <QDialog>
#include <QRadioButton>
#include <QLineEdit>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QFormLayout>

class LocalDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LocalDialog(QWidget *parent = nullptr);

    QString getLocalDbName() const;

private:
    QRadioButton *localConnectionRadioButton;
    QLineEdit *localDbNameEdit;
    QLabel *localLabel;
    QPushButton *connectButton;
    QPushButton *cancelButton;

private slots:
    void onFieldsChanged();
};

#endif // LOCALDIALOG_H
